/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2021-10-14     yc       the first version
 */
#ifndef BSP_FLASH_H_
#define BSP_FLASH_H_


#define FLASH_SPI_NSS_GPIO_PORT     GPIOG
#define FLASH_SPI_NSS_GPIO_PIN      GPIO_PIN_6
#define FLASH_SPI_NSS_CLK()         __HAL_RCC_GPIOG_CLK_ENABLE()
#define FLASH_SPI_DEVICE            "spi1"
#define FLASH_SPI_DEVICE_NAME       "W25Q128"
#define FLASH_SPI_DEVICE_NUMBER     "spi10"


void bsp_w25q128_init(void);


#endif
